import request from '../networks/request';
// 发布话题
export const postTopic = (data) => {
    return request({
        url: '/topic/add',
        method: 'post', 
        data:data , 
    });
};

// 获取我的话题
export const mytopic = (data) => {
    return request({
        url: '/topic/findbyuid',
        method: 'get', 
        params:data ,
    });
}

// 获取我的话题
export const findbytid = (data) => {
    return request({
        url: '/topic/findbytid',
        method: 'get',
        params:data ,
    });
}

// 增加话题浏览量
export const topicBrowseUp = (data) => {
    return request({
        url: '/topic/browse/up',
        method: 'put',
        data
    });
}